<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="js/vue.js"></script>

    <!--引入 element js css-->
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
    <script src="element-ui/lib/index.js"></script>

    <script src="js/axios-0.18.0.js"></script>

</head>
<body>
    <div id="app">
        <template>
            <el-radio v-model="radio" label="1">备选项</el-radio>
            <el-radio v-model="radio" label="2">备选项</el-radio>
        </template>

        <button @click="sub">sub</button>
    </div>
</body>

<script>
    new Vue({
        el:"#app",
        data:{
            radio: '1'
        },
        methods:{
            sub(){
                console.log(this.radio)
            }
        }

    });
</script>

</html>